diff options
Diffstat (limited to 'app/[lng]/evcp/(evcp)/(master-data)/incoterms/page.tsx')
| -rw-r--r-- | app/[lng]/evcp/(evcp)/(master-data)/incoterms/page.tsx | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/app/[lng]/evcp/(evcp)/(master-data)/incoterms/page.tsx b/app/[lng]/evcp/(evcp)/(master-data)/incoterms/page.tsx index bf7f9313..cb0aab9b 100644 --- a/app/[lng]/evcp/(evcp)/(master-data)/incoterms/page.tsx +++ b/app/[lng]/evcp/(evcp)/(master-data)/incoterms/page.tsx @@ -8,11 +8,21 @@ import { SearchParamsCache } from "@/lib/incoterms/validations"; import { getIncoterms } from "@/lib/incoterms/service"; import { IncotermsTable } from "@/lib/incoterms/table/incoterms-table"; import { InformationButton } from "@/components/information/information-button"; +import { useTranslation } from "@/i18n" + +interface IndexPageProps { + params: Promise<{ lng: string }> + searchParams: Promise<SearchParams> +} interface IndexPageProps { - searchParams: Promise<SearchParams>; + params: Promise<{ lng: string }> + searchParams: Promise<SearchParams> } export default async function IndexPage(props: IndexPageProps) { + const { lng } = await props.params + const { t } = await useTranslation(lng, 'menu') + const searchParams = await props.searchParams; const search = SearchParamsCache.parse(searchParams); const validFilters = getValidFilters(search.filters); @@ -29,7 +39,7 @@ export default async function IndexPage(props: IndexPageProps) { <div className="flex items-center justify-between space-y-2"> <div> <div className="flex items-center gap-2"> - <h2 className="text-2xl font-bold tracking-tight">인코텀즈 관리</h2> + <h2 className="text-2xl font-bold tracking-tight">{t('menu.master_data.incoterms')}</h2> <InformationButton pagePath="evcp/incoterms" /> </div> {/* <p className="text-muted-foreground"> |
